:root {
    --gradient-bg: linear-gradient(135deg, #f1e3d3 0%, #f2d0a9 50%, #d88c9a 100%);
    --card-bg: rgba(26, 26, 46, 0.8);
    --accent1: #e94560;
    --accent2: #00b4d8;
    --accent3: #7209b7;
    --text: #ffffff;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gradient-bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: "Comfortaa", sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(233, 69, 96, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(114, 9, 183, 0.1) 0%, transparent 15%);
    pointer-events: none;
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.header {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
    animation: floatTitle 3s ease-in-out infinite;
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dev-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--card-shadow);
    transform: rotate(var(--rotation));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dev-card:hover {
    transform: translateY(-15px) rotate(0) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent1);
}

.polaroid {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    margin-bottom: 1rem;
    transform: rotate(var(--img-rotation));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dev-card:hover .polaroid {
    transform: rotate(0) scale(1.05);
}

.dev-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 3px;
    transition: filter 0.3s ease;
}

.dev-card:hover .dev-image {
    filter: brightness(1.1);
}

.dev-name {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--accent1);
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
    transition: color 0.3s ease;
}

.dev-card:hover .dev-name {
    color: var(--accent2);
}

.dev-title {
    color: var(--accent2);
    font-style: italic;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.dev-facts {
    background: rgba(26, 26, 46, 0.5);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.dev-card:hover .dev-facts {
    transform: translateX(5px);
    border-color: var(--accent2);
}

.fact-item {
    margin: 0.5rem 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease, background 0.3s ease;
}

.fact-item:hover {
    transform: translateX(5px);
    color: var(--accent1);
    background: rgba(233, 69, 96, 0.1);
    border-radius: 5px;
}

.fact-item::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent2);
    transition: color 0.3s ease;
}

.dev-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.dev-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.dev-link:hover {
    transform: scale(1.3) rotate(360deg);
    color: var(--accent1);
    opacity: 1;
    text-shadow: 0 0 10px var(--accent1);
}

.particle {
    position: fixed;
    background: linear-gradient(45deg, var(--accent1), var(--accent2))
}